<?php

/**
 * TypeJour form.
 *
 * @package    sopN
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormTemplate.php 10377 2008-07-21 07:10:32Z dwhittle $
 */
class TypeJourForm extends BaseTypeJourForm {

  public function configure() {
    $this->widgetSchema['libelle'] = new sfWidgetFormPropelChoice(
      array(
        'model'   => 'TypeJour',
        'id_format' => 'type_jour_%s',
        'choices' => TypeJourPeer::doSelect(new Criteria())
      ),
      array(
        'onchange' => 'this.form.submit()'
      )
    );
  }

}
